<template>
    <Test :title="tit" :age="age"/>
    <Test @onEvent="getData"/>
</template>

<script>
// @ is an alias to /src
import Test from '@/components/test.vue'

export default {
  name: 'TestView',
  components: {
    Test
  },
  data(){
    return{
      tit: "我是标题",
      age:20,
    }
  },
  methods:{
    getData(data){
      alert(data)
    }
  }
}
</script>
